// To parse this JSON data, do
//
//     final examineEntity = examineEntityFromJson(jsonString);

import 'dart:convert';

ExamineEntity examineEntityFromJson(String str) =>
    ExamineEntity.fromJson(json.decode(str));
String examineEntityToJson(ExamineEntity data) => json.encode(data.toJson());

class ExamineEntity {
  ExamineEntity({
    this.code,
    this.data,
    this.message,
  });

  int code;
  List<Datum> data;
  String message;

  factory ExamineEntity.fromJson(Map<String, dynamic> json) => ExamineEntity(
        code: json["code"],
        data: List<Datum>.from(json["data"].map((x) => Datum.fromJson(x))),
        message: json["message"],
      );

  Map<String, dynamic> toJson() => {
        "code": code,
        "data": List<dynamic>.from(data.map((x) => x.toJson())),
        "message": message,
      };
}

class Datum {
  Datum({
    this.examineClassId,
    this.modifyUser,
    this.examineClassName,
    this.modifyTime,
    this.statusId,
    this.addTime,
    this.hospitalId,
    this.addUser,
    this.isDelete,
    this.keyId,
  });

  String examineClassId;
  String modifyUser;
  String examineClassName;
  String modifyTime;
  int statusId;
  String addTime;
  String hospitalId;
  String addUser;
  int isDelete;
  String keyId;

  factory Datum.fromJson(Map<String, dynamic> json) => Datum(
        examineClassId: json["examineClassID"],
        modifyUser: json["modifyUser"],
        examineClassName: json["examineClassName"],
        modifyTime: json["modifyTime"],
        statusId: json["statusID"],
        addTime: json["addTime"],
        hospitalId: json["hospitalID"],
        addUser: json["addUser"],
        isDelete: json["isDelete"],
        keyId: json["keyID"],
      );

  Map<String, dynamic> toJson() => {
        "examineClassID": examineClassId,
        "modifyUser": modifyUser,
        "examineClassName": examineClassName,
        "modifyTime": modifyTime,
        "statusID": statusId,
        "addTime": addTime,
        "hospitalID": hospitalId,
        "addUser": addUser,
        "isDelete": isDelete,
        "keyID": keyId,
      };
}

ExamineSubEntity examineSubEntityFromJson(String str) =>
    ExamineSubEntity.fromJson(json.decode(str));
String examineSubEntityToJson(ExamineSubEntity data) =>
    json.encode(data.toJson());

class ExamineSubEntity {
  ExamineSubEntity({
    this.code,
    this.data,
    this.message,
  });

  int code;
  List<SubDatum> data;
  String message;

  factory ExamineSubEntity.fromJson(Map<String, dynamic> json) =>
      ExamineSubEntity(
        code: json["code"],
        data:
            List<SubDatum>.from(json["data"].map((x) => SubDatum.fromJson(x))),
        message: json["message"],
      );

  Map<String, dynamic> toJson() => {
        "code": code,
        "data": List<dynamic>.from(data.map((x) => x.toJson())),
        "message": message,
      };
}

class SubDatum {
  SubDatum({
    this.examineClassId,
    this.addTime,
    this.attributeValue,
    this.doctorIncome,
    this.addUser,
    this.isDelete,
    this.keyId,
    this.personPay,
    this.hospitalIncome,
    this.examineItemName,
    this.modifyUser,
    this.examineClassName,
    this.modifyTime,
    this.statusId,
    this.hospitalId,
    this.platformIncome,
    this.rankingValue,
    this.hisItemCode,
    this.selected,
  });

  String examineClassId;
  String addTime;
  String attributeValue;
  int doctorIncome;
  String addUser;
  int isDelete;
  String keyId;
  int personPay;
  int hospitalIncome;
  String examineItemName;
  String modifyUser;
  String examineClassName;
  String modifyTime;
  int statusId;
  String hospitalId;
  int platformIncome;
  int rankingValue;
  String hisItemCode;
  bool selected;

  factory SubDatum.fromJson(Map<String, dynamic> json) => SubDatum(
      examineClassId: json["examineClassID"],
      addTime: json["addTime"],
      attributeValue: json["attributeValue"],
      doctorIncome: json["doctorIncome"],
      addUser: json["addUser"],
      isDelete: json["isDelete"],
      keyId: json["keyID"],
      personPay: json["personPay"],
      hospitalIncome: json["hospitalIncome"],
      examineItemName: json["examineItemName"],
      modifyUser: json["modifyUser"],
      examineClassName: json["examineClassName"],
      modifyTime: json["modifyTime"],
      statusId: json["statusID"],
      hospitalId: json["hospitalID"],
      platformIncome: json["platformIncome"],
      rankingValue: json["rankingValue"],
      hisItemCode: json["hisItemCode"],
      selected: json["selected"]);

  Map<String, dynamic> toJson() => {
        "examineClassID": examineClassId,
        "addTime": addTime,
        "attributeValue": attributeValue,
        "doctorIncome": doctorIncome,
        "addUser": addUser,
        "isDelete": isDelete,
        "keyID": keyId,
        "personPay": personPay,
        "hospitalIncome": hospitalIncome,
        "examineItemName": examineItemName,
        "modifyUser": modifyUser,
        "examineClassName": examineClassName,
        "modifyTime": modifyTime,
        "statusID": statusId,
        "hospitalID": hospitalId,
        "platformIncome": platformIncome,
        "rankingValue": rankingValue,
        "hisItemCode": hisItemCode,
        "selected": selected
      };
}
